﻿<UserControl x:Class="SurfaceApplication3.EventEntry"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:s="http://schemas.microsoft.com/surface/2008"    
             mc:Ignorable="d" 
             Height="220" Width="930" Background="#B0CAB8">

    <UserControl.Resources>
        <Style TargetType="s:SurfaceButton">
            <Setter Property="FontSize" Value="16"/>
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="Background" Value="#227174"/>
            <Setter Property="Padding" Value="8,4" />
            <Setter Property="Margin" Value="4" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="s:SurfaceButton">
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsEnabled" Value="False">
                                <Setter Property="Background" Value="Gray" />
                            </Trigger>
                            <Trigger Property="IsPressed" Value="True">
                                <Setter Property="Background" >
                                    <Setter.Value>
                                        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1" >
                                            <GradientStop Color="#FF90DDFF" Offset="0.35"/>
                                            <GradientStop Color="LightBlue" Offset="0.95"/>
                                            <GradientStop Color="#FF81DDFF" Offset="1"/>
                                        </LinearGradientBrush>
                                    </Setter.Value>
                                </Setter>
                            </Trigger>

                        </ControlTemplate.Triggers>

                        <Border CornerRadius="7" Margin="0" Background="{TemplateBinding Background}" BorderBrush="#227174" BorderThickness="2">
                            <ContentPresenter 
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                >
                            </ContentPresenter>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>


    </UserControl.Resources>

    <Canvas>
        <Rectangle x:Name="background" Fill="White" Height="190" Width="910" Canvas.Top="15" Canvas.Left="10"/>
        <Label Content="Event Name:" Canvas.Left="15" Canvas.Top="20" Foreground="Black" FontSize="22" Width="150" Height="30" />
        <s:SurfaceTextBox x:Name="name_tag"  Height="40" Width="450" BorderBrush="#227174" BorderThickness="2" Canvas.Left="180" Canvas.Top="20" SelectionBrush="{x:Null}" Foreground="Black" Background="{x:Null}" TextWrapping="Wrap" MinHeight="30" IsReadOnly="True" VerticalContentAlignment="Center" FontSize="14" />

        <Label Content="Start Year:" Canvas.Left="15" Canvas.Top="65" Width="150" Foreground="Black" FontSize="22" Height="30"/>
        <s:SurfaceTextBox x:Name="start_tag" Height="40" Width="450" BorderBrush="#227174" BorderThickness="2" Canvas.Left="180" Canvas.Top="65" Background="{x:Null}" TextWrapping="Wrap" Foreground="Black" MinHeight="30"  IsReadOnly="True"  VerticalContentAlignment="Center" FontSize="14"/>

        <Label Content="End Year:" Canvas.Left="15" Canvas.Top="110" Width="150" Foreground="Black" FontSize="22" Height="30"/>
        <s:SurfaceTextBox x:Name="end_tag" Height="40" Width="450" BorderBrush="#227174" BorderThickness="2" Canvas.Left="180" Canvas.Top="110" Background="{x:Null}" TextWrapping="Wrap" Foreground="Black" MinHeight="30"  IsReadOnly="True" VerticalContentAlignment="Center" FontSize="14"/>

        <Label Canvas.Left="15" Canvas.Top="155" Content="Location:" FontSize="22" Foreground="Black" Width="150" Height="30" />
        <s:SurfaceTextBox x:Name="location_tag" Height="40" Width="450" BorderBrush="#227174" BorderThickness="2" Canvas.Left="180" Canvas.Top="155" Background="{x:Null}" TextWrapping="Wrap" Foreground="Black" MinHeight="30"  IsReadOnly="True" VerticalContentAlignment="Center" FontSize="14"/>

        <s:SurfaceTextBox x:Name ="description" Height="98" Width="260" Canvas.Left="650" Canvas.Top="51" Background="#B8DAD2" BorderBrush="#227174" BorderThickness="2" TextWrapping="Wrap" Foreground="Black"  IsReadOnly="True"  FontSize="14" VerticalScrollBarVisibility="Auto"/>
        <s:SurfaceButton x:Name="edit" Content="Edit" Height="35" FontFamily="Calibri" FontSize="22" BorderThickness="3,2"  Width="114" Canvas.Left="650" Canvas.Top="157" PreviewMouseUp="edit_Click" PreviewTouchUp="edit_Click" HorizontalContentAlignment="Center" MinHeight="0" MinWidth="0"/>
        <s:SurfaceButton x:Name="delete" Content="Delete" Height="35" FontFamily="Calibri" FontSize="22" BorderThickness="3,2"  Width="114" Canvas.Left="793" Canvas.Top="157" Click="delete_Click" AllowDrop="True" MinHeight="0" MinWidth="0" />
        <Label Canvas.Left="657" Canvas.Top="15" Content="Description:" FontSize="22" Foreground="Black" Height="30" Width="140" />
    </Canvas>

</UserControl>
